package com.kusej.idno.generation;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.DialogWrapper;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;


public class CheckIDCardDialog extends DialogWrapper {
    private CheckIdCard checkIdCard;
    private final Project project;

    public CheckIDCardDialog(@Nullable Project project) {
        super(project, true, IdeModalityType.PROJECT);
        this.project = project;
        init();
        setTitle("身份证号码校验");
        setSize(530, 200);
    }

    @Override
    protected @Nullable JComponent createCenterPanel() {
        checkIdCard= new CheckIdCard();
        return checkIdCard.createUIComponents();
    }

    @Override
    protected Action @NotNull [] createActions() {
        // 创建自定义的操作数组，只包含您需要的按钮
        return new Action[]{getCancelAction()};
    }
}



